package mainpackage;

import javax.microedition.lcdui.Font;

/**
 * 游戏常量类
 * @author hlwdaaa
 */
public class Constant {
    //调试模式开关

    /*********************android 增加*************************/
    public static final boolean DEBUG = true;
    public static final boolean b_QUICK_DEBUG_GAME_UI = false;
    public static boolean bTestFlow = false;
    //玩家走路测试d
    public static long PLAYER_WALK_TEST_DELAY = 50;
    /*******************************************网络部分************************************************/
    //socket参数设置测试
    public static final int SOCKET_DELAY = 0;
    public static final int SOCKET_LINGER = 0;
    public static final int SOCKET_KEEPALIVE = 0;
    public static final int SOCKET_RCVBUF = 2048;
    public static final int SOCKET_SNDBUF = 2048;
    public static final byte SOCKET_HEAD_LENGTH = 13;
//    //用户中心 IP
    public static final String USER_CENTER_IP = "192.168.1.116";
//    public static final String USER_CENTER_IP = "117.135.138.61";
    public static final String USER_CENTER_PATH = "/sycenter/";
//    移动socket端口ip
//    public static String CONNECT_IP = "socket://112.25.11.41:2817";
//    public static String CONNECT_IP = "socket://192.168.1.185:2815";
     
     public static String SOCKET_IP = "112.25.11.41";
     public static String SOCKET_PORT = "2817";
     public static final String CONNECT_IP = "socket://"+SOCKET_IP+":"+SOCKET_PORT;
//     public static String CONNECT_IP = "socket://58.215.185.99:18008";
     public static final String HTTP_HOST = "http://58.215.185.99:18009/http/";
     public static final String CHECK_ACCOUNT = "checkAccount?";
     public static final String KEY_USE_NAME = "user_id=";
     public static final String KEY_USE_PSW = "password=";
     public static final String KEY_PRODUCT = "product_id=";
     public static final String KEY_VERSION = "version=";
     public static final String KEY_SUPER_PSW = "superpasswd=";
     public static final String KEY_CHANNEL = "channel_id=";
     public static final String KEY_UA = "ua=";
     public static final String KEY_IMEI = "imei=";
     public static final String KEY_OLD_PSW = "oldpasswd=";
     public static final String KEY_FLAG = "flag=";
     public static final String KEY_NEW_PSW = "newpasswd=";
     public static final String KEY_NEW_SUPER_PSW = "newsuperpasswd=";



//    public static String CONNECT_IP = "socket://117.135.139.238:2817";//二区
//    public static String CONNECT_IP = "socket://117.135.139.195:2815";//一区s
    public static int AUTH_CODE = 0x36;
//    public static int AUTH_CODE2 = 0x38;
    public static int AUTH_CODE2 = 0x36;
    //url头
    public static String IP_HEAD = "socket://";
    //当前的版本号
    public static final String CURRENT_VERSION = "1";//SY_S60V3.jar
    public static final int PRODUCT_ID = 1;
    //#if MOTO
//#     public static final String JAD_URL = "GS_MOTO_";
    //#elif K7900
    //#      public static final String JAD_URL = "GS_K790_";
    //#elif NOKIA_S40V3
//#     public static final String JAD_URL = "GS_S40V3_";
    //#elif NOKIAN73
//#     public static final String JAD_URL = "GS_N73_";
    //#elif NOKIA_S60V5
     public static final String JAD_URL = "GS_S60V5_";
    //#elif NOKIA_E72
//#     public static final String JAD_URL = "GS_E72_";
    //#else
//#    public static final String JAD_URL = "GS_S60V3_";
    //#endif
//附件中是当乐、九游、UC打包时需要加的LOGO，以下是游戏退出时返回的链接地址，请加载在游戏客户端中。
//当乐返回链接——神羿论坛链接地址：http://3g.d.cn/bbs/wml/fcs.jw?act=listall&forumId=7233
//九游返回链接：http://shenyi.9game.cn/Index.Aspx?SessionId=G5abfe50c26885e67ed1289685317bdc&P=
//UC游戏中心返回链接：g.uc.cn
// public static final String QIUT_GAME_STORE_URL = "http://g.uc.cn";
//    10570001 	新浪
    //#if QUDAOID == "DANGLE"
//#     public static final String QIUT_GAME_STORE_URL = "http://3g.d.cn/bbs/wml/fcs.jw?act=listall&forumId=7233";
//#     //渠道号
//#     public static final String CHANNEL_NUM = "10000001";
//#     public static String QUDAO_NAME = "D";
//#elif QUDAOID == "JIUYOU"
//#     public static final String QIUT_GAME_STORE_URL = "http://shenyi.9game.cn/Index.Aspx?SessionId=G5abfe50c26885e67ed1289685317bdc&P=";
//#     public static String QUDAO_NAME = "9G";
//#     public static final String CHANNEL_NUM = "10010001";
    //#elif QUDAOID == "UC"
//#     public static final String QIUT_GAME_STORE_URL = "http://g.uc.cn";
//#     public static String QUDAO_NAME = "UC";
//#     public static final String CHANNEL_NUM = "10110001";
    //#elif  QUDAOID == "BAORUAN"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10120001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "SINA"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10570001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "LEXUN"
//#   public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10050001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "SYTX"
//#     public static final String QIUT_GAME_STORE_URL =  "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10040001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "ZHUOYU"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10080001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "FEILIU"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10150001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "TYZN"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10280001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "PAOJIAO"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10100001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "17SY"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10160001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "MOPAO"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10220001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "YISHOU"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10230001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "SHOUXIAN"  
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10630001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "SJXYX"  
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10140001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "SHAIRUAN"  
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10420001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "XYGH"  
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10580001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "MJGH"  
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10590001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "SGGH"  
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10600001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "ARESZSJT"  
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10610001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "KQGH"  
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10620001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "3373"  
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10730001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "YXDZ"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10690001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "HCYX"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10700001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "LQ"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10710001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "SYZN"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10720001";
//#     public static String QUDAO_NAME = "T";
    //#elif  QUDAOID == "7723"
//#     public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
//#     public static final String CHANNEL_NUM = "10260001";
//#     public static String QUDAO_NAME = "T";
    //#else
    public static final String QIUT_GAME_STORE_URL = "http://wap.keetaa.com";
    //我们自己用的包
    public static final String CHANNEL_NUM = "10000000";
    public static String QUDAO_NAME = "T";
    //#endif
    //邮件类型
    public static byte CMD_MAIL_TYPE;
    //快速进入游戏
    public static byte QUICK_GAME = 0;
    //记录快速进入的URL
    public static String QUICK_GAME_URL = "";
    //用户中心  version
//    public static String USER_CENTER_VERSION = "";
    //用户中心  downloadAddress
//    public static String USER_CENTER_DOWNLOADADDRESS = "";
    //得到更新的地址
    public static String UPDATE_URL = "";
    //短线重新连接
    public static long spacetime = 0L;
    public static boolean again_connection;
    //消息类型为逻辑
    public static final byte SOCKET_MSG_TYPE_LOGIC = 1;
    //消息类型为资源
    public static final byte SOCKET_MSG_TYPE_RES = 2;//
    //消息类型为数据库
    public static final byte SOCKET_MSG_TYPE_HEART = 3;
    //网络消息frame间隔处理数量
    public final static byte QUEUE_MESSAGE_NUMS = 15;
    /********************************************************资源部分********************************************************************************/
    public final static String RES_PATH_LOGO = "/logo.png";
    //#if NOKIA_S40V3 || MOTO || K790
//#     public final static String RES_PATH = "/res/S40V3/Images/";
//#     public final static String RES_ANI_PATH = "/res/S40V3/ani/";
//#     public final static String RES_UI_PATH = "/res/S40V3/UI/";
//#     public final static String RES_TER_PATH = "/res/S40V3/ter/";
    //#elif NOKIA_S60V5
     public final static String RES_PATH = "/res/S60V5/Images/";
     public final static String RES_ANI_PATH = "/res/S60V5/ani/";
     public final static String RES_UI_PATH = "/res/S60V5/UI/";
     public final static String RES_TER_PATH = "/res/S60V5/ter/";
    //#elif NOKIA_E72
//#     public final static String RES_PATH = "/res/E72/Images/";
//#     public final static String RES_ANI_PATH = "/res/E72/ani/";
//#     public final static String RES_UI_PATH = "/res/E72/UI/";
//#     public final static String RES_TER_PATH = "/res/E72/ter/";
    //#elif NORMAL_240_400
//#     public final static String RES_PATH = "/res/NORMAL_240_400/Images/";
//#     public final static String RES_ANI_PATH = "/res/NORMAL_240_400/ani/";
//#     public final static String RES_UI_PATH = "/res/NORMAL_240_400/UI/";
//#      public final static String RES_TER_PATH = "/res/NORMAL_240_400/ter/";
    //#else
//#    public final static String RES_PATH = "/res/S60V3/Images/";
//#    public final static String RES_ANI_PATH = "/res/S60V3/ani/";
//#    public final static String RES_UI_PATH = "/res/S60V3/UI/";
//#    public final static String RES_TER_PATH = "/res/S60V3/ter/";
    //#endif
    public final static String RES_PET_TALK_TXT = "/res/petTalk.txt";
    public final static String RES_TIPS_TXT = "/res/tips.txt";
    public final static String RES_SKILL_TXT = "/res/skill.txt";
//男角色动画文件
    public final static int RES_PLAYER_MAN_ANI_PATH = 383;//;02-00001.ani";
//女角色动画文件
    public final static int RES_PLAYER_WOMEN_ANI_PATH = 382;//;02-00001.ani";
    //玩家avatar资源路径
    public final static int RES_PLAYER_AVATAR_CLOES_ANI_PATH = 45;
    public final static int RES_PLAYER_AVATAR_TROUSERS_ANI_PATH = 46;
    public final static int RES_PLAYER_WOMEN_AVATAR_SHOES_ANI_PATH = 47;
    //角色死亡动画
    public final static int RES_PLAYER_GRAVE_ANI_PATH = 500008;//;
    public final static int RES_LOGO_ANI_PATH = 122;
    //喷血动画
    public final static int RES_BLOOD_ANI_PATH = 6403;//640003;//;
    //眩晕动画
    public final static int RES_DIZZINESS_ANI_PATH = 74;
    //增益动画
    public final static int RES_GAIN_ANI_PATH = 620008;
    public final static int RES_TEST_ANI = 3;
    public final static int RES_NPC_DIE_ANI_PATH = 119;//";02-00001.ani"
    public final static int RES_LOAD_ANI_PATH = 1;//122;
    //任务问号感叹号
    public final static int RES_NPC_MISSION_ANI_PATH = 189;//;02-00001.ani";
    //锁定光标动画
    public final static int RES_PLAYER_CURLOCK_ANI_PATH = 699999;
    ///图片资源
    public final static int RES_IMG_BUFF_ICON_PATH = 90000018;
    // 测试使用的NPC动画
    /********************************************************逻辑部分相关***************************************************************************/
//    //屏幕宽高
    //#if NOKIA_S60V5
     public static final int SCREEN_WIDTH = 360;
     public static final int SCREEN_HEIGHT = 640;
     //实际绘制的宽度
     public static final int DRAW_WIDTH = 360;
     public static final int DRAW_HEIGHT = 640;
     //绘制部分结束线
     public static final int END_LINE = 410;
     //
     public static final int NEW_END_LINE = 400;
    //#elif NOKIA_E72
//#     public static final int SCREEN_WIDTH = 320;
//#     public static final int SCREEN_HEIGHT = 240;
//#     //实际绘制的宽度
//#     public static final int DRAW_WIDTH = 320;
//#     public static final int DRAW_HEIGHT = 240;
    //#elif NORMAL_240_400
//#     public static final int SCREEN_WIDTH = 240;
//#     public static final int SCREEN_HEIGHT = 400;
//#     //实际绘制的宽度
//#     public static final int DRAW_WIDTH = 240;
//#     public static final int DRAW_HEIGHT = 400;
    //#else 
//#    public static final int SCREEN_WIDTH = 240;
//#    public static final int SCREEN_HEIGHT = 320;
//#    //实际绘制的宽度
//#    public static final int DRAW_WIDTH = 240;
//#    public static final int DRAW_HEIGHT = 320;
    //#endif
    //ui界面绘制的起点坐标
    public final static int UI_START_X = (SCREEN_WIDTH - DRAW_WIDTH) >> 1;
    public final static int UI_START_Y = (SCREEN_HEIGHT - DRAW_HEIGHT) >> 1;
    //title宽高
    public static final int TITLEWIDHT = 16;
    public static final int TITLEHEIGHT = 16;
    //区域行列数
    public static final int AREA_ROWS = 45;
    public static final int AREA_COLUMNS = 60;
    //边界行列数
    public static final int BORDER_ROWS = SCREEN_WIDTH / TITLEWIDHT;
    public static final int BORDER_COLUMNS = SCREEN_HEIGHT / TITLEHEIGHT;
    //#if  NOKIA_S40V3 || NOKIAN73 || MOTO || K790
//#     //frame间隔时间
//#     public static final int MILLIS_PER_TICK = 100;
    //#else
    public static final int MILLIS_PER_TICK = 82;
    //#endif
    //字体
//    public static Font FONT_SMALL = Font.getFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL);
    public static Font FONT_SMALL = Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_PLAIN, Font.SIZE_MEDIUM);
    public static int FONT_SMALL_HEIGHT = FONT_SMALL.getHeight();
    public static int FONT_CHAR_WIDTH = FONT_SMALL.stringWidth("字");
    public static int WORD_SPACEING = 0;
    public static int LINE_SPACEING = 1;
    //按键处理
    //#if MOTO
//#     public final static int KEY_CODE_SOFT_LEFT = -21;
//#     public final static int KEY_CODE_SOFT_RIGHT = -22;
    //#else
    public final static int KEY_CODE_SOFT_LEFT = -6;
    public final static int KEY_CODE_SOFT_RIGHT = -7;
    //#endif
    public final static int KEY_C_ = -8;
    public final static int KEY_UNDEFINED = 0;
    public final static int KEY_0 = 1;
    public final static int KEY_1 = 1 << 1;
    public final static int KEY_2 = 1 << 2;
    public final static int KEY_3 = 1 << 3;
    public final static int KEY_4 = 1 << 4;
    public final static int KEY_5 = 1 << 5;
    public final static int KEY_6 = 1 << 6;
    public final static int KEY_7 = 1 << 7;
    public final static int KEY_8 = 1 << 8;
    public final static int KEY_9 = 1 << 9;
    public final static int KEY_STAR = 1 << 10;
    public final static int KEY_POUND = 1 << 11;
    public final static int KEY_DIR_LEFT = 1 << 12;
    public final static int KEY_DIR_RIGHT = 1 << 13;
    public final static int KEY_DIR_UP = 1 << 14;
    public final static int KEY_DIR_DOWN = 1 << 15;
    public final static int KEY_DIR_CENTER = 1 << 16;
    public final static int KEY_SOFT_LEFT = 1 << 17;
    public final static int KEY_SOFT_RIGHT = 1 << 18;
    public final static int KEY_C = 1 << 19;
    /////////////////////////按键处理///////////////////////////////
    public final static int GAME_KEY_UNDEFINED = 0;
    public final static int GAME_KEY_LEFT = 1;
    public final static int GAME_KEY_RIGHT = 1 << 1;
    public final static int GAME_KEY_UP = 1 << 2;
    public final static int GAME_KEY_DOWN = 1 << 3;
    public final static int GAME_KEY_FIRE = 1 << 4;
    public final static int GAME_KEY_POSITIVE = 1 << 5;
    public final static int GAME_KEY_NEGATIVE = 1 << 6;
    public final static int GAME_KEY_0 = 1 << 7;
    public final static int GAME_KEY_1 = 1 << 8;
    public final static int GAME_KEY_2 = 1 << 9;
    public final static int GAME_KEY_3 = 1 << 10;
    public final static int GAME_KEY_4 = 1 << 11;
    public final static int GAME_KEY_5 = 1 << 12;
    public final static int GAME_KEY_6 = 1 << 13;
    public final static int GAME_KEY_7 = 1 << 14;
    public final static int GAME_KEY_8 = 1 << 15;
    public final static int GAME_KEY_9 = 1 << 16;
    public final static int GAME_KEY_STAR = 1 << 17; //*
    public final static int GAME_KEY_POUND = 1 << 18; //#
    public final static int GAME_KEY_C = 1 << 19;//c
    public final static int UP = 0;
    public final static int DOWN = 1;
    public final static int LEFT = 2;
    public final static int RIGHT = 3;
    public final static int FIRE = 4;
    public final static int POSITIVE = 5;
    public final static int NEGATIVE = 6;
    /////////////////////////游戏消息指令///////////////////////////////
    //用户中心验证http指令
    public final static byte MSG_LOCAL_HTTP_LOGIN = 0;
    //获得服务器列表
    public final static byte MSG_LOCAL_HTTP_SERVERLIST = 1;
    //快速注册
    public final static byte MSG_LOCAL_HTTP_QUICKLOGIN = 2;
    //注册
    public final static byte MSG_LOCAL_HTTP_REGISTER = 3;
    //修改密码
    public final static byte MSG_LOCAL_HTTP_CHANGE_PASSWORD = 4;
    //快速进入
    public final static byte MSG_LOCAL_HTTP_QUICK_ENTER = 5;
    //游戏中指令
    public final static int MSG_LOCAL_SHORT_LOGIN = 1000;
    //2
    public final static int MSG_LOCAL_SHORT_REGIST = 20000;
    //图片
    public final static int MSG_NET_GET_IMAGE = 1;
    //动画
    public final static int MSG_NET_GET_ANIMATION = 2;
    //地图数据
    public final static int MSG_NET_GET_TERRAIN = 3;
    //3
    //public final static int MSG_NET_CONNECT_AFFIRM = 3;
    public final static int MSG_NET_CONNECT_AFFIRM = 999;
    //4
    public final static int MSG_NET_LOGIN_PLAYER = 4;
    //5
    public final static int MSG_NET_RECONNECT = 5;
    //socket验证
    public final static int MSG_NET_CMD_SOCKET_START = 9999;
    //登录游戏
    public final static int MSG_NET_CMD_LOGIN = 135;
    //创建角色
    public final static int MSG_NET_CREATE_ROLE = 136;
    //战斗
    public final static int MSG_NET_BATTLE = 137;
    //登录进入游戏(不是用户输入用账号和密码)
    public final static int MSG_NET_ENTER_WORLD = 138;
    //进入游戏后载入玩家的
    public final static int MSG_NET_CMD_LOAD_OTHER = 140;
    //其他玩家信息(添加用)
    public final static int MSG_NET_OTHER_PLAYER_INFO = 143;
    //退出游戏
    public final static int MSG_NET_QUIT_GAME = 147;
    //更新坐标
    public final static int MSG_NET_WALK = 145;
    //切换场景
    public final static int MSG_NET_XCHANGE_SCENE = 144;
    //纠正玩家位置
    public final static int MSG_NET_MODIFY_POSITION = 146;
    //MSG_NET_MODIFY_POSITION
    //学习技能
    public final static int MSG_NET_LEARN_SKILL = 148;
    //添加心法技能位
    public final static int MSG_NET_ADD_SKILL_PLACE = 149;
    //遗忘技能
    public final static int MSG_NET_UNLEARN_SKILL = 150;
    //学习经脉
    public final static int MSG_NET_LEARN_MERIDIAN = 151;
    //洗点
    public final static int MSG_NET_CLEAN_MERIDIAN = 152;
    //npc交流
    public final static int MSG_NET_CMD_NPC = 153;
    // npc任务命令接受完成任务和任务奖励
    public final static int MSG_NET_CMD_QUEST = 154;
    //其他玩家下线
    public final static int MSG_NET_CMDI_EXIT_GAME = 155;
    //打开包裹栏
    public final static int MSG_NET_CMD_OPEN_BAG = 158;
    //添加 物品
    public final static int MSG_NET_CMD_ADD_ITEM = 159;
    //删除物品
    public final static int MSG_NET_CMD_DELETE_ITEM = 160;
    //查看
    public final static int MSG_NET_CMD_CHECK_ITEM = 161;
    //排序物品
    public final static int MSG_NET_CMD_SORT_ITEM = 162;
    //使用物品
    public final static int MSG_NET_CMD_USE_ITEM = 163;
    //打开装备栏
    public final static int MSG_NET_CMD_OPEN_EQUIP = 164;
    //卸载装备
    public final static int MSG_NET_CMD_DELETE_EQUIP = 165;
    //穿装备
    public final static int MSG_NET_CMD_USE_EQUIP = 166;
    //玩家增加修为
    public final static int MSG_NET_CMD_ADD_MITZVAH = 167;
    //查看物品的简单描述
    public final static int MSG_NET_CMD_CHECK_DESC = 169;
    //更新时间
    public final static int MSG_NET_CMDSYN_TIME = 170;
    //人身上的装备对比
    public final static int MSG_NET_DIFF_EQUIP = 171;
    //寻路
    public final static int MSG_NET_CMD_FIND_PATH = 172;
    //通用的提示信息
    public final static int MSG_NET_CMD_TIPS = 173;
    //加入队伍
    public final static int MSG_NET_CMD_TEAM_JOIN = 174;
    //队伍回应
    public final static int MSG_NET_CMD_TEAM_ANSWER = 175;
    //队伍同屏
    public final static int MSG_NET_CMD_TEAM_INFO = 176;
    //获得心法信息
    public final static int MSG_NET_OPEN_KUNGFU = 177;
    //聊天
    public final static int MSG_NET_CMD_SHOUT = 178;
    //创建帮派
    public final static int MSG_NET_CREATE_TONG = 180;
    //申请加入帮派
    public final static int MSG_NET_CMD_APPLICATION_TONG = 181;
    //帮派列表
    public final static int MSG_NET_CMD_TONG_LIST = 182;
    //锁定情况下要buff
    public final static int MSG_NET_BUFF_OPT = 184;
    //邀请加入帮派
    public final static int MSG_NET_INVITE_TONG = 185;
    //任务列表界面
    public final static int MSG_NET_CMD_QUEST_LIST = 187;
    //卸载buffer
    public final static int MSG_NET_CMD_DELETE_BUFF = 188;
    //离开踢出队伍
    public final static int MSG_NET_CMD_TEAM_LEAVE = 189;
    //解散队伍
    public final static int MSG_NET_CMD_TEAM_DISMISS = 190;
    //提升队长
    public final static int MSG_NET_CMD_TEAM_CHANGE_LEADER = 191;
    //合成物品
    public final static int MSG_NET_CMD_FUNC_COMPOSE = 192;
    //分解物品
    public final static int MSG_NET_CMD_FUNC_DECOMPOSE = 193;
    //强化物品
    public final static int MSG_NET_CMD_FUNC_STRENGTH = 194;
    //查看任务的详细信息
    public final static int MSG_NET_CMD_QUEST_INFO = 196;
    //解散帮派
    public final static int MSG_NET_CMD_TONG_DISMISS = 197;
    //帮主职位
    public final static int MSG_NET_CMD_TONG_CHANGE_POSITION = 202;
    //离开帮派
    public final static int MSG_NET_CMD_TONG_LEAVE = 204;
    //修改帮派公告
    public final static int MSG_NET_TONG_CHANGE_DESCRIPT = 281;
    //帮派NPC建筑升级
    public final static int MSG_NET_TONG_NPC_UPGRADE = 282;
    //帮派NPC等级
    public final static int MSG_NET_TONG_NPC_INFO = 283;
    //帮派信息
    public final static int MSG_NET_CMD_TONG_DESCRIPT = 247;
    //物品打孔
    public final static int MSG_NET_CMD_FUNC_HOLE = 206;
    //物品镶嵌
    public final static int MSG_NET_CMD_FUNC_INLAY = 207;
    //帮会成员列表
    public final static int MSG_NET_CMD_TONG_MEMBER_LIST = 211;
    //打开宠物装备栏
    public final static int MSG_NET_CMD_OPEN_PET = 183;
    //卸下宠物
    public final static int MSG_NET_CMD_DELETE_PET = 186;
    //宠物强化
    public final static int MSG_NET_CMD_FUNC_PETSTRENGTH = 203;
    //宠物的合成
    public final static int MSG_NET_CMD_FUNC_PET_COMPOSE = 195;
    //宠物喂养
    public final static int MSG_NET_CMD_PET_FEED = 205;
    //查看宠物
    public final static int MSG_NET_CMD_CHECK_PET = 209;
    //装备宠物
    public final static int MSG_NET_CMD_USE_PET = 210;
    //选择物品
    public final static int MSG_NET_CMD_SELECT_PETSTRENGTH_ITEM = 208;
    //获得npc详细信息
    public final static int MSG_NET_CMD_NPC_INFO = 212;
    //获得其他玩家详细信息
    public final static int MSG_NET_CMD_OTHER_PLAYER_INFO = 213;
    //增加玩家金钱
    public final static int MSG_NET_CMD_ADD_MONEY = 157;
    //选择宠物合成物品
    public final static int MSG_NET_CMD_SELECT_PETCOMPOSE_ITEM = 214;
    //拆分物品
    public final static int MSG_NET_CMD_MOVE_ITEM = 216;
    //买卖功能
    public final static int MSG_NET_CMD_FUNC_STORE = 217;
    //打开NPC出售商店
    public final static int MSG_NET_CMD_OPEN_NPC_STORE = 218;
    //查询合成金钱
    public final static int MSG_NET_CMD_FUNC_COMPOSE_MONEY = 219;
    //查询分解金钱
    public final static int MSG_NET_CMD_FUNC_DECOMPOSE_MONEY = 223;
    //查询打孔金钱
    public final static int MSG_NET_CMD_FUNC_HOLE_MONEY = 224;
    //查询镶嵌金钱
    public final static int MSG_NET_CMD_FUNC_INLAY_MONEY = 225;
    //查询强化装备需要的金钱
    public final static int MSG_NET_CMD_FUNC_STRENGTH_MONEY = 230;
    //查询强化宝石几率
    public final static int MSG_NET_CMD_FUNC_STRENGTH_RATE = 231;
    //信件提示
    public final static int MSG_NET_CMD_MAIL_HINT = 198;
    //判断收件人是否存在
    public final static int MSG_NET_CMD_MAIL_CHECKUSER = 199;
    //发送邮件
    public final static int MSG_NET_CMD_MAIL_POST = 200;
    //邮件操作
    public final static int MSG_NET_CMD_MAIL_OPEARTION = 201;
    //邮件中查询金钱
    public final static int MSG_NET_CMD_MAIL_MONEY = 237;
    //查询金钱
    public final static int MSG_NET_CMD_CHECK_MONEY = 238;
    //添加好友
    public final static int MSG_NET_CMD_ADD_FRIEND = 220;
    //好友列表
    public final static int MSG_NET_CMD_FRIEND_LIST = 221;
    //删除好友
    public final static int MSG_NET_CMD_DEL_FREIND = 222;
    //添加最近联系人
    public final static int MSG_NET_CMD_ADD_CONTANT = 226;
    //切换场景同步信息
    public final static int MSG_NET_CMD_ENTER_SCENE = 234;
    //查询商店物品
    public final static int MSG_NET_CMD_CHECK_STORE_ITEM = 232;
    //查询商店物品描述
    public final static int MSG_NET_CMD_CHECK_STORE_DESC = 233;
    //打开仓库
    public final static int MSG_NET_CMD_OPEN_DEPOT = 235;
    //仓库存储
    public final static int MSG_NET_CMD_FUNC_DEPOT = 236;
    //申请交易
    public final static int MSG_NET_CMD_TRADE_JOIN = 239;
    //交易回应
    public final static int MSG_NET_CMD_TRADE_ANSWER = 240;
    //同步交易物品信息
    public final static int MSG_NET_CMD_SYNC_TRADE_ITEM = 241;
    //交易取消
    public final static int MSG_NET_CMD_TRADE_CANCEL = 242;
    //帮派传送
    public final static int MSG_NET_CMD_FUNC_TONG_TRANS = 244;
    //得到角色信息
    public final static int MSG_NET_CMD_GET_ROLES = 245;
    //交易
    public final static int MSG_NET_CMD_TRADE = 243;
    //锁定交易
    public final static int MSG_NET_CMD_LOCK_TRADE = 246;
    //打开经脉界面
    public final static int MSG_NET_CMD_OPEN_MERIDIAN = 256;
    //得到经脉描述
    public final static int MSG_NET_GET_MERIDIAN_DESC = 257;
    //玩家死亡
    public final static int MSG_NET_CMD_IDEAD = 249;
//    //打开属性加点界面
//    public final static int MSG_NET_CMD_OPEN_ATTR_POINT = 250;
    //加点
    public final static int MSG_NET_CMD_ADD_ATTR_POINT = 251;
//    //查看人物属性
//    public final static int MSG_NET_CMD_CHECK_ATTRIBUTE = 265;
    //人物PK状态操作
    public final static int MSG_NET_CMD_PK = 264;
    //查看社交界面
    public final static int MSG_NET_CMD_SOCIAL = 267;
    //元素攻击（得到经脉描述）
    public final static int MSG_NET_CMD_GET_SERIES_INFO = 262;
    //增加经验
    public final static int MSG_NET_CMD_ADD_EXP = 156;
    //修理装备
    public final static int MSG_NET_CMD_FUNC_REPAIR = 252;
    //获得修理装备
    public final static int MSG_NET_CMD_GET_REPAIR_FEE = 253;
    //锁定宠物技能
    public final static int MSG_NET_CMD_PET_LOCK_SKILL = 254;
    //宠物绑定
    public final static int MSG_NET_CMD_PET_BIND = 255;
    //改变状态
    public final static int MSG_NET_CMD_CHANGE_STATE = 259;
    //物品打孔镶嵌
    public final static int MSG_NET_CMD_FUNC_HOLE_INFO = 260;
    //拆卸宝石
    public final static int MSG_NET_CMD_FUNC_DISMANTLE = 261;
    //查询宠物合成金钱
    public final static int MSG_NET_CMD_FUNC_PET_COMPOSE_MONET = 263;
    //溜宠
    //public final static int MSG_NET_CMD_SHOW_PET = 266;
//    同步气血 
    public final static int MSG_NET_CMD_SYNC_HEALTH = 268;
    //同步精气
    public final static int MSG_NET_CMD_SYNC_MANA = 269;
    //同步pk值
    public final static int MSG_NET_CMD_SYNC_PK = 270;
    //被添加好友
    public final static int MSG_NET_CMD_BE_ADD_FRIEND = 271;
    //向服务器要NPC
    public final static int MSG_NET_CMD_OPT_ON_SCREEN = 272;
    //设置快捷栏
    public final static int MSG_NET_CMD_SET_QUICK = 273;
    //等待队伍分配物品
    public final static int MSG_NET_CMD_TEAM_ITEM = 274;
    //队伍roll点分配物品
    public final static int MSG_NET_CMD_TEAM_ROLL = 275;
    //战场报名
    public final static int MSG_NET_CMD_APPLY_TONG_ARENA = 276;
    //战场传送
    public final static int MSG_NET_CMD_SEND_TONG_ARENA = 277;
    //放弃任务
    public final static int MSG_NET_CMD_DELETE_QUEST = 285;
    //通用传送指令
    public final static int MSG_NET_CMD_FUNC_SEND = 278;
    //查看技能
    public final static int MSG_NET_CHECK_SKILL = 284;
    //宠物改名
    public final static int MSG_NET_CMD_PET_CHANGE_ALIAS = 286;
    //宠物守护
    public final static int MSG_NET_CMD_PET_DEFEND = 266;
    //查看附近玩家
    public final static int MSG_NET_CMD_CHECK_NEAR_PLAYERS = 287;
    //查看其他玩家
    public final static int MSG_NET_CMD_OTHER_PLAYER_DETAIL = 288;
    //选择宠物潜能激发物品
    public final static int MSG_NET_CMD_SELECT_PET_POTENTIAL_ITEM = 290;
    //宠物潜能激发
    public final static int MSG_NET_CMD_PET_FUNC_POTENTIAL_EXCITE = 291;
    //宠物在宠物装备栏使用物品
    public final static int MSG_NET_CMD_PET_EQUIP_USE = 292;
    //玩家变身
    public final static int MSG_NET_CMD_CHANGE_AVATAR = 289;
    //获得传送列表
    public final static int MSG_NET_CMD_GET_SEND_POINT = 280;
    //任务完成后提示寻路
    public final static int MSG_NET_CMD_QUEST_FIND_PATH = 293;
    //PK状态改变
    public final static int MSG_NET_CMD_QUIT_CONTEST = 294;
    //使用绑定符
    public final static int MSG_NET_CMD_EQUIP_BIND = 295;
    //删除npc
    public final static int MSG_NET_CMD_DELETE_NPC = 296;
    //报名帮派列表
    public final static int MSG_NET_CMD_GET_APPLY_TONG_LIST = 279;
    //战场积分
    public final static int MSG_NET_CMD_SEND_ARENA_INTEGRAL = 297;
    //安装buffer
    public final static int MSG_NET_CMD_INSTALL_BUFF = 298;
    //删除非同屏圈玩家
    public final static int MSG_NET_CMD_DELETE_PLAYER = 302;
    //获得任务的简单描述信息
    public final static int MSG_NET_CMD_QUEST_SIMPLE_INFO = 303;
    //本地通用提示消息
    public final static int MSG_NET_CMD_TIPS_CODE = 305;
    //其他玩家战斗
    public final static int MSG_NET_PLAYER_ON_SCREEN_BATTLE = 304;
    //添加物品
    public final static int MSG_NET_CMD_PUT_ITEM = 306;
    //答题信息
    public final static int MSG_NET_CMD_QUESTION_INFO = 307;
    //进行答题
    public final static int MSG_NET_CMD_QUESTION_RUN = 308;
    //结束答题
    public final static int MSG_NET_CMD_QUESTION_END = 309;
    //游戏时间
    public final static int MSG_NET_CMD_GAME_TIME = 310;
    //打开工资和元宝商城
    public final static int MSG_NET_CMD_OPEN_INGOT_STORE = 311;
    //客户端准备就绪
    public final static int MSG_NET_CMD_CLIENT_READY = 313;
    //购买元宝商城东西
    public final static int MSG_NET_CMD_FUNC_INGOT_BUY = 312;
    //我的收藏和购买记录
    public final static int MSG_NET_CMD_MY_INGOT_RECORD = 314;
    //收藏和取消收藏
    public final static int MSG_NET_CMD_FUNC_STORE_ITEM_COLLECT = 315;
    //赠送
    public final static int MSG_NET_CMD_FUNC_STORE_GIFT = 316;
    //流量设置
    public final static int MSG_NET_CMD_SET_FLOW = 323;
    //角色信息
    public final static int MSG_NET_CMD_CHECK_PROPERTY = 265;
    //打开加点界面
    public final static int MSG_NET_CMD_OPEN_PROPERTY_POINT = 250;
    //持续效果
    public final static int MSG_NET_CMD_CONTINUE_EFFECT = 330;
    //清楚所有buffer
    public final static int MSG_NET_CMD_CLEAN_EFFECT = 331;
    //查看buffer时间
    public final static int MSG_NET_CMD_CHECK_MEFFECT = 332;
    //查看buffer时间
    public final static int MSG_NET_CMD_CMD_SET_VERSION = 333;
    //公告
    public final static int MSG_NET_CMD_CMD_NOTICE = 334;
    //获得公告列表
    public final static int MSG_NET_CMD_NOTICE_LIST = 335;
    //更改密码(在游戏中)
    public final static int MSG_NET_CMD_CHANGE_PASSWORD = 340;
    public final static int MSG_NET_CMD_CMD_GUIDE = 348;
    //打开玩家的摊位
    public final static int MSG_NET_CMD_BUSINESS_OPEN = 349;
    //调整摊位出售的物品
    public final static int MSG_NET_CMD_BUSINESS_OPT = 350;
    //购买玩家摊位出售的物品
    public final static int MSG_NET_CMD_BUSINESS_BUY = 351;
    //查看玩家的称号
    public final static int MSG_NET_CMD_CHECK_PLAYER_NICK = 352;
    //设置玩家的当前称号
    public final static int MSG_NET_CMD_SET_PLAYER_NICK = 353;
    //倒计时宝箱
    public final static int MSG_NET_CMD_COUNT_BOX = 356;
    //玩家排行榜
    public final static int MSG_NET_CMD_PLAYER_TOP = 354;
    //开启离线挂机
    public final static int MSG_NET_CMD_HANGUP_START = 357;
    //打开离线挂机界面
    public final static int MSG_NET_CMD_OFFLINEHANG_OPEN = 358;
    //提取离线挂机经验
    public final static int MSG_NET_CMD_OFFLINEHANG_EXTRACT = 359;
    //打开在线挂机界面
    public final static int MSG_NET_CMD_ONLINEHANG_UI = 360;
    //设置在线挂机（开关）
    public final static int MSG_NET_CMD_ONLINEHANG = 361;
    //改变npc
    public final static int MSG_NET_CMD_NPC_CHANGE = 362;
    //使用激活码
    public final static int MSG_NET_CMD_ACTIVATION = 363;
    //用户充值
    public final static int MSG_NET_CMD_CHARGE = 364;
    //用户充值明细
    public final static int MSG_NET_CMD_CHARGE_LIST = 365;
    //使用物品后获得
    //资源指令区别
    //获得地图图片
    //    public final static byte NET_TYPE_MAP_IMAGE_1 = 0;
    public final static int SELECTED_COLOR = 0x00CCFF;//被选中的颜色
    //动画类翻转定义
    public final static byte TRANS_NONE = 0;
    public final static byte TRANS_MIRROR = 2;
    public final static byte TRANS_MIRROR_ROT90 = 7;
    public final static byte TRANS_MIRROR_ROT180 = 1;
    public final static byte TRANS_MIRROR_ROT270 = 4;
    public final static byte TRANS_ROT90 = 5;
    public final static byte TRANS_ROT180 = 3;
    public final static byte TRANS_ROT270 = 6;
    //锁定类型
    public final static byte LOCKED_TYPE_NPC = 0;//NPC
    public final static byte LOCKED_TYPE_OTHERPLAYER = 1;//OTHERPLAYER
    //npc类型
    public final static byte NPC_TYPE_CANATTACK = 1;//可攻击NPC
    public final static byte NPC_TYPE_CANNOTATTACK = 2;//不可攻击NPC
    //玩家相关
    //玩家性别
    public final static byte PLAYER_SEX_MAN = 0;//男
    public final static byte PLAYER_SEX_WOMAN = 1;//女
    public final static byte PLAYER_SEX_OTHER = 2;//其他
    //玩家职业
    public final static byte PLAYER_OCCUPTION_ASSASSIN = 1;//刺客
    public final static byte PLAYER_OCCUPTION_SWORD = 2; //武师
    public final static byte PLAYER_OCCUPTION_MASTER = 4;//术士
    //玩家方向
    public final static byte PLAYER_DIRECTION_UP = 0;//向上
    public final static byte PLAYER_DIRECTION_DOWN = 1;//向下
    public final static byte PLAYER_DIRECTION_LEFT = 2;//向左
    public final static byte PLAYER_DIRECTION_RIGHT = 3;//向右
    public final static byte PLAYER_DIRECTION_UP_LEFT = 4;//左上
    public final static byte PLAYER_DIRECTION_UP_RIGHT = 5;//右上
    public final static byte PLAYER_DIRECTION_DOWN_LEFT = 6;//左下
    public final static byte PLAYER_DIRECTION_DOWN_RIGHT = 7;//右下
    //玩家方向类型 X 0, Y 1
    public final static byte PLAYER_DIRECTION_TYPE_X = 0;
    public final static byte PLAYER_DIRECTION_TYPE_Y = 1;
    //动作序列
    public static byte PLAYER_ACTION_ID_DOWN_STAND = 0; //下站
    public static byte PLAYER_ACTION_ID_UP_STAND = 1; //上站
    public static byte PLAYER_ACTION_ID_LEFT_STAND = 2; //左站
    public static byte PLAYER_ACTION_ID_RIGHT_STAND = 3; //右站
    public static byte PLAYER_ACTION_ID_DOWN_RUN = 4; //下走
    public static byte PLAYER_ACTION_ID_UP_RUN = 5; //上走
    public static byte PLAYER_ACTION_ID_LEFT_RUN = 6; //左走
    public static byte PLAYER_ACTION_ID_RIGHT_RUN = 7; //右走
    public static byte PLAYER_ACTION_ID_DOWN_FIGHT = 8; //下战斗
    public static byte PLAYER_ACTION_ID_UP_FIGHT = 9; //上战斗
    public static byte PLAYER_ACTION_ID_LEFT_FIGHT = 10; //左战斗
    public static byte PLAYER_ACTION_ID_RIGHT_FIGHT = 11; //右战斗
    public static byte PLAYER_ACTION_ID_LEFT_SKILL_FIGHT; //左技能攻击
    public static byte PLAYER_ACTION_ID_RIGHT_SKILL_FIGHT = 3; //右技能攻击
    public static byte PLAYER_ACTION_ID_UP_SKILL_FIGHT; //上技能攻击
    public static byte PLAYER_ACTION_ID_DOWN_SKILL_FIGHT = 0; //下技能攻击
    public static byte PLAYER_ACTION_ID_LEFT_SRRONG_SKILL_FIGHT; //左技能重攻击攻击
    public static byte PLAYER_ACTION_ID_RIGHT_SRRONG_SKILL_FIGHT = 11; //右技能重攻击
    public static byte PLAYER_ACTION_ID_UP_SRRONG_SKILL_FIGHT; //上技能重攻击
    public static byte PLAYER_ACTION_ID_DOWN_SRRONG_SKILL_FIGHT = 8; //下技能重攻击
    public static byte PLAYER_ACTION_ID_BURYING; //埋
    public static byte PLAYER_ACTION_ID_DIE; //死亡
    //玩家状态
    //正常状态
    public final static byte PLAYER_BIG_STATE_NORMAL = 1;
    //玩家战斗状态
    public final static byte PLAYER_BIG_STATE_FIGHT = 2;
    //玩家动画
    public final static byte PLAYER_STATE_DIE = 0;
    public final static byte PLAYER_STATE_STAND = 1;
    public final static byte PLAYER_STATE_RUN = 2;
    public final static byte PLAYER_STATE_FIGHT_READY = 3;
    public final static byte PLAYER_STATE_FIGHT = 4;
    public final static byte PLAYER_STATE_AI_RUN = 5;
    //寻路状态
    public final static byte PLAYER_STATE_AUTO_RUN = 5;
    //玩家和技能相关动作总数
    public final static byte PLAYER_SKILL_AND_ACTION = 20;
    //游戏绘制相关
    public final static short PLAYER_DISTANCE_SCREEN_X = SCREEN_WIDTH >> 1;
    public final static short PLAYER_DISTANCE_SCREEN_Y = SCREEN_HEIGHT >> 1;
    //角色AVATAR
    //帽子
    public final static byte PLAYER_AVATAR_HEAD = 1;
    //鞋子
    public final static byte PLAYER_AVATAR_SHOES = 6;
    //衣服
    public final static byte PLAYER_AVATAR_CLOTH = 3;
    //裤子
    public final static byte PLAYER_AVATAR_TROUSERS = 4;
    //武器
    public final static byte PLAYER_AVATAR_WEAPON = 8;
    //头发
    public final static byte PLAYER_AVATAR_HEAR = 11;
    //宠物
    public final static byte PLAYER_AVATAR_PET = 9;
    //////////////////////////游戏状态////////////////////
    //伤害数字最大数组
    public final static byte MAX_DAMAGE_ARRAY_SIZE = 10;
    //封面界面
    public final static byte GAME_UI_COVER = 0;
    //漫游界面
    public final static byte GAME_UI_ROAM = 1;
    //游戏开始前的加载显示公司logo
    public final static byte GAME_UI_LOGO = 2;
    //登录游戏
    public final static byte GAME_UI_LOGIN = 3;
    //创建游戏角色
    public final static byte GAME_UI_CREATE_ROLE = 4;
    //和npc对话
    public final static byte GAME_UI_NPC_TALK = 5;
    //loading条
    public final static byte GAME_UI_LOADING = 6;
    //漫游界面下弹出菜单层
    public final static byte GAME_UI_ROAM_MENU = 7;
    //接受任务的界面
    public final static byte GAME_UI_ACCEPT_TASK = 8;
    //游戏开始时选择操作界面
    public final static byte GAME_UI_OPTION_LIST = 9;
    //漫游界面中的包裹界面
    public final static byte GAME_UI_PACKAGE = 10;
    //漫游界面中的装备界面
    public final static byte GAME_UI_EQUIPMENT = 11;
    //组队下查看队伍信息
    public final static byte GAME_UI_TEAM_INFO = 12;
    //查看玩家信息
    public final static byte GAME_UI_VIEW_OTHER_PLAYER = 13;
    //组队回应界面
    public final static byte GAME_UI_TEAM_ANSWER = 14;
    //漫游界面中的技能界面
    public final static byte GAME_UI_SKILL = 15;
    //漫游界面中的聊天界面
    public final static byte GAME_UI_CHAT = 16;
    //用户的任务列表界面
    public final static byte GAME_UI_TASK_LIST = 17;
    //聊天选择
    public final static byte GAME_UI_CHAT_SECOND = 18;
    //聊天表情
    public final static byte GAME_UI_SMILE = 19;
    //聊天设置
    public final static byte GAME_UI_CHAT_SET = 20;
    //创建帮派界面
    public final static byte GAME_UI_CREATE_TONG = 22;
    //帮派列表界面
    public final static byte GAME_UI_TONG_LIST = 23;
    //宠物合成
    public final static byte GAME_UI_PET_COMPOSE = 25;
    //宠物装备栏
    public final static byte GAME_UI_PET_EQUIP = 27;
    //创建帮派
    public final static byte GAME_UI_TONG_BUILDING = 28;
    //帮派技能界面
    public final static byte GAME_UI_TONG_SKILL = 29;
    //游戏快捷键设置
    public final static byte GAME_UI_GAMESET_QUICKEYS = 31;
    //帮派成员列表
    public final static byte GAME_UI_TONG_MEMBER_LIST = 32;
    //帮派信息
    public final static byte GAME_UI_TONG_INFO = 33;
    //物品合成
    public final static byte GAME_UI_ITEMS_COMPOSE = 34;
    //物品强化
    public final static byte GAME_UI_ITEMS_STRENGTHEN = 35;
    //物品分解
    public final static byte GAME_UI_ITEMS_DECOMPOSE = 36;
    //装备操作界面
    public final static byte GAME_UI_EQUIP_OPERATION = 37;
    //好友列表
    public final static byte GAME_UI_FRIEND_LIST = 39;
    //玩家出售物品界面
    public final static byte GAME_UI_STORE_SOLD = 40;
    //玩家购买物品界面
    public final static byte GAME_UI_STORE_BUY = 41;
    //发送邮件
    public final static byte GAME_UI_SEND_EMAIL = 42;
    //接收邮件
    public final static byte GAME_UI_RECEIVE_EMAIL = 43;
    //邮件操作
    public final static byte GAME_UI_OPERATION_EMAIL = 44;
    //查看邮件
    public final static byte GAME_UI_VIEW_EMAIL = 45;
    //仓库
    public final static byte GAME_UI_WAREHOUSE = 46;
    //玩家交易
    public final static byte GAME_UI_TRADE = 47;
    //交易回应
    public final static byte GAME_UI_TRADE_ANSWER = 48;
    //角色信息
    public final static byte GAME_UI_PLAYER_INFO = 49;
    //属性加点
    public final static byte GAME_UI_PROPERTY_ADD_POINT = 50;
    //元素攻击
    public final static byte GAME_UI_ELEMENT_ATTACK = 51;
    //经脉
    public final static byte GAME_UI_MERIDIANS = 52;
    //死亡复活
    public final static byte GAME_UI_REVIVE = 53;
    //修理装备
    public final static byte GAME_UI_EQUIP_REPAIR = 54;
    //世界地图
    public final static byte GAME_UI_MAP_WORLD = 55;
    //玩家PK邀请回答
    public final static byte GAME_UI_CONTEST_ANSWER = 56;
    //帮派家园菜单
    public final static byte GAME_UI_TONG_MENU = 57;
    //查看其他玩家
    public final static byte GAME_UI_LOOK_OTHERPLAYER = 58;
    //附近玩家列表
    public final static byte GAME_UI_NEAR_PLAYER_LIST = 59;
    //宠物潜能激发
    public final static byte GAME_UI_PET_POWER_STRENGTHEN = 60;
    //游戏设置
    public final static byte GAME_UI_GAMESET = 61;
    //片头
    public final static byte GAME_UI_OPEN_SCREEN = 62;
    //打开传送列表
    public final static byte GAME_UI_TRANSFER_LIST = 63;
    //帮派报名列表
    public final static byte GAME_UI_APPLY_TONG_LIST = 64;
    //任务完成后自动寻路
    public final static byte GAME_UI_TASK_AUTO_FIND_PATH = 65;
    //服务器列表
    public final static byte GAME_UI_SERVER_LIST = 66;
    //游戏帮助
    public final static byte GAME_UI_HELP = 67;
    //游戏关于
    public final static byte GAME_UI_ABOUT = 68;
    //游戏设置
    public final static byte GAME_UI_SET = 69;
    //游戏更新
    public final static byte GAME_UI_UPDATE = 70;
    //答题活动
    public final static byte GAME_UI_QUESTION = 71;
    //断线重连
    public final static byte GAME_UI_CONNECTION_AGAIN = 72;
    //元宝商城
    public final static byte GAME_UI_INGOT_STORE = 73;
    //工资商城
    public final static byte GAME_UI_WAGE_STORE = 74;
    //我的元宝收藏/购买记录
    public final static byte GAME_UI_INGOT_RECORD = 75;
    //打卡活动
    public final static byte GAME_UI_PUNCH_CLOCK = 76;
    //发送邮件
    public final static byte GAME_UI_SENDINPUT_EMAIL = 77;
    //查看说明
    public final static byte GAME_UI_FUNC_DESC = 78;
    //查看buffer详情
    public final static byte GAME_UI_BUFFER_LIST = 79;
    //公告列表
    public final static byte GAME_UI_NOTICE_LIST = 80;
    //功能设置
    public final static byte GAME_UI_FUNC_SETTING = 81;
    //玩家排行榜
    public final static byte GAME_UI_PLAYER_TOP = 82;
    //快捷引导界面
    public final static byte GAME_UI_QUICK_OPTION = 84;
    //玩家摊位
    public final static byte GAME_UI_PLAYER_STALL = 83;
    //挂机
    public final static byte GAME_UI_HANGUP = 85;
    //换购物品
    public final static byte GAME_UI_EXCHANGE = 86;
    public final static byte GAME_UI_CHANGE_PASSWD = 87;//更改密码
    public final static byte GAME_UI_OVER = 88;//游戏退出
    public final static byte GAME_UI_NETWORK_SELECT = 89;//玩家选择联网方式
    public final static byte GAME_UI_CHARGE = 90;//玩家充值
    public final static byte GAME_UI_CHARGE_LIST = 91;//玩家的充值记录
    //end
    ///////////////////////////////////////////游戏绘制相关////////////////////////
    //avatar最大数量
    public final static byte PLAYER_AVATAR_MAX_NUMS = 8;
    //#if NOKIAN73 || NOKIA_S40V3  || MOTO || K790
//#     //动画文件容器最大数量
//#     public final static byte GAME_ANIMATION_NUMS = 50;
//#     public final static byte GAME_NPC_MAXNUMS = 20;
//#     //同屏npc最大数量
//#     public final static byte MAX_NPC_NUM_IN_SCREEN = 40;
//#     //屏幕内锁定单位其他玩家容器最大数量
//#     public final static byte GAME_OTHERPLAYER_MAXNUMS = 30;
//#     //同屏其他玩家最大数量
//#     public final static byte MAX_OTHERPLAYER_NUM_IN_SCREEN = 30;
    //#else
    //动画文件容器最大数量
    public final static byte GAME_ANIMATION_NUMS = 80;
    public final static byte GAME_NPC_MAXNUMS = 30;
    //同屏npc最大数量
    public final static byte MAX_NPC_NUM_IN_SCREEN = 100;
    //屏幕内锁定单位其他玩家容器最大数量
    public final static byte GAME_OTHERPLAYER_MAXNUMS = 80;
    //同屏其他玩家最大数量
    public final static byte MAX_OTHERPLAYER_NUM_IN_SCREEN = 80;
    //#endif
    //同屏npc死亡动画最大数量
    public final static byte MAX_NPC_DIE_NUM_IN_SCREEN = 5;
    //屏幕内锁定单位容器最大数量
    public final static byte MAX_LOCKED_MAXNUMS = 10;
    //系统发送的消息，客户端最多保存的数量
    public final static byte MAX_SYS_MESS_NUM = 20;
    //队伍最大人数
    public static final byte MAX_TEAM_MEMBER_NUM = 4;
    //密码，角色名称和登录名的长度
    public final static byte MAX_USER_NAME_LENGTH = 16;
    public final static byte MIN_USER_NAME_LENGTH = 1;
    public final static byte MAX_USER_PASSWORD_LENGTH = 16;
    public final static byte MIN_USER_PASSWORD_LENGTH = 6;
    public final static byte MAX_ROLE_NAME_LENGTH = 6;
    public final static byte MIN_ROLE_NAME_LENGTH = 1;
    //有归还完成的任务
    public static final byte ACT_NPC_MISSION_FINISH = 1;
    //有可接受任务显示叹号
    public static final byte ACT_NPC_MISSION_ACCEPT = 0;
    //已接受未完成
    public static final byte ACT_NPC_MISSION_NOT_FINISH = 2;
    /*************************物品栏类型*******************************************************/
    public static final byte ITEM_COLUMN_TYPE_COMMON = 1; //普通物品栏
    public static final byte ITEM_COLUMN_TYPE_TASK = 2;//任务道具栏
    public static final byte ITEM_COLUMN_TYPE_PET = 3;// 宠物宠物品栏
    public static final byte ITEM_COLUMN_TYPE_EQUIP = 5; // 武器防具装备栏
    public static final byte ITEM_COLUMN_TYPE_PET_EQUIP = 6; //宠物装备栏
    public static final byte ITEM_COLUMN_TYPE_STORE = 7; // 商店物品栏
    public static final byte ITEM_COLUMN_TYPE_WAREHOUSE = 8; //仓库物品栏
    public static final byte ITEM_COLUMN_TYPE_EQUIP_PACKAGE = 9; //装备栏包裹栏
    public static final byte ITEM_COLUMN_TYPE_OTHERPLAYER_EQUIP = 10; //其他玩家的装备栏
    //public static final byte ITEM_COLUMN_TYPE_SOLD 
    /*******************************物品大的的类型（分类）*****************************************/
    public static final byte ITEM_TYPE_CONSUMABLES = 1; //消耗品
    public static final byte ITEM_TYPE_WEAPONS = 2; //武器
    public static final byte ITEM_TYPE_EQUIP = 3; //装备
    public static final byte ITEM_TYPE_GEM = 4;// 宝石
    public static final byte ITEM_TYPE_PETS = 5; //宠物
    public static final byte ITEM_TYPE_SKILLS_BOOKS = 6; //技能书
    public static final byte ITEM_TYPE_FORMULA = 7;//配方
    public static final byte ITEM_TYPE_PROPS = 8;//普通道具
    public static final byte ITEM_TYPE_USE_PROPS = 9;//可使用道具
    public static final byte ITEM_TYPE_TASK_PROPS = 10;//普通任务道具
    public static final byte ITEM_TYPE_USE_TASK_PROPS = 11;//可使用任务道具
    public static final byte ITEM_TYPE_PET_FOOD = 12; //宠物喂养道具，增加快乐度
    public static final byte ITEM_TYPE_MEDICINE = 13;//药品
    public static final byte ITEM_TYPE_OTHERS = 100; //其他类型的道具
    /*********************物品的操作类型**************************************************/
    public static final byte ITEM_OPERATION_TYPE_CHECK = 1;// 查看
    public static final byte ITEM_OPERATION_TYPE_USE = 2;  //使用
    public static final byte ITEM_OPERATION_TYPE_DIFF = 3;//对比
    public static final byte ITEM_OPERATION_TYPE_EQUIP = 4; //装备
    public static final byte ITEM_OPERATION_TYPE_LEARNING = 5; //学习
    public static final byte ITEM_OPERATION_TYPE_DELETE = 6; //丢弃
    public static final byte ITEM_OPERATION_TYPE_COMBINING = 7;//合成
    public static final byte ITEM_OPERATION_TYPE_FEED = 8;//喂养
    public static final byte ITEM_OPERATION_TYPE_PET_CHANGE_ALIAS = 9; //宠物改名
    public static final byte ITEM_OPERATION_TYPE_DELETE_EQUIP = 10;//卸下装备
    public static final byte ITEM_OPERATION_TYPE_CHECK_DESC = 11; //获得物品的描述
    public static final byte ITEM_OPERATION_TYPE_STRENGTH = 12;// 强化
    public static final byte ITEM_OPERATION_TYPE_PET_DEFEND = 13;//守护/休息
    public static final byte ITEM_OPERATION_TYPE_PET_USE = 14;// 装备宠物
    public static final byte ITEM_OPERATION_TYPE_DELETE_PET = 15; //卸载宠物
    public static final byte ITEM_OPERATION_TYPE_CHECK_PET = 16; //查看宠物
    public static final byte ITEM_OPERATION_TYPE_CHECK_EQUIP = 17; // 在装备栏中查看道具
    public static final byte ITEM_OPERATION_TYPE_SOLD = 18; //在出售物品栏中出售物品
    public static final byte ITEM_OPERATION_TYPE_BUY = 19; // 在购买物品栏中购买物品
    public static final byte ITEM_OPERATION_TYPE_MOVE = 21; //移动物品
    public static final byte ITEM_OPERATION_TYPE_PET_BIND = 22; //宠物绑定/解除绑定
    public static final byte ITEM_OPERATION_TYPE_PET_RELEASE = 23; //宠物放生
    //记录物品的操作类型
    public static byte ITEM_OPERATION_TYPE_RECORD = -1;
    public static final byte ITEM_OPERATION_TYPE_GAMESET = 70;
    //*******人物身上的可以装备的物品的数量****************************************
    public static final byte PLAYER_WEAR_EQUIP_NUM = 10;
    /*****************人身上的装备位置*********************************************************************/
    public static final byte EQUIP_POS_HEAD = 1;//头  帽子
    public static final byte EQUIP_POS_NECK = 2; //颈部 项链
    public static final byte EQUIP_POS_CHEST = 3; //上身 衣服
    public static final byte EQUIP_POS_LEGS = 4;//下身 裤子
    public static final byte EQUIP_POS_WRIST = 5;//手镯
    public static final byte EQUIP_POS_FOOT = 6;//脚 鞋子
    public static final byte EQUIP_POS_AMULET = 7;//护身符 //玉佩
    public static final byte EQUIP_POS_WEAPON = 8;//武器
    public static final byte EQUIP_POS_FINGER = 9;//手指 戒指
    public static final byte EQUIP_POS_MOUNTS = 10;//坐骑
    /*******************************************************记录存储************************************************************/
    //登录界面的用户名和密码
    public static final byte RMS_LOGIN_USENAME_PASSWORD = 0;
    //地图数据
    public static final byte RMS_MAP_TER_DATA = 1;
    //地图图片
    public static final byte RMS_ONE_ROOM_IMAGE = 2;
    //动画文件资源
    public static final byte RMS_ONE_ROOM_ANI = 3;
    //玩家设置
    public static final byte RMS_GAME_SET = 4;
    //新手教学
    public static final byte RMS_NEW_PLAYER_TUITION_1 = 5;
    //新手过区锁
    public static final byte RMS_NEW_PLAYER_CAN_GO_LOCK = 6;
    //游戏性能设置
    public static final byte RMS_GAME_DRAW_SET = 7;
    //新手教学
    public static final byte RMS_NEW_PLAYER_TUITION_2 = 8;
    //新手教学
    public static final byte RMS_NEW_PLAYER_TUITION_3 = 9;
    //新手教学
    public static final byte RMS_NEW_PLAYER_TUITION_4 = 10;
    //记录角色登陆
    public static final byte RMS_PLAYER_INDEX = 11;
    //记录角色登陆
    public static final byte RMS_PLAYER_ID = 12;
    //快速登录连接服务器的URL
    public static final byte RMS_CONNECT_IP = 13;
    //玩家等级
    public static final byte RMS_PLAYER_LEVLE = 14;
    //玩家性别
    public static final byte RMS_PLAYER_SEX = 15;
    //玩家的联网方式记录
    public static final byte RMS_PLAYER_NETWORK = 16;
    public static final byte RMS_SOCKET_AUTHCODE1 = 17;//垃圾包
    public static final byte RMS_SOCKET_AUTHCODE2 = 18;//垃圾包
    public static final byte RMS_SERVER_ID = 19;//服务器ID
    public static final byte RMS_QUICK_STATUS = 20;//服务器快速进入状态
    public static final byte RMS_SUPER_PASSWD = 21;//用户的超级密码
    public static final byte RMS_MOBILE_IMEI = 22;//用户手机的唯一标识码
    //玩家自己发起技能
    public static final byte SKILL_TYPE_PLAYER = 0;
    //其他玩家发起技能
    public static final byte SKILL_TYPE_OTHERPLAYER = 1;
    //NPC发起技能
    public static final byte SKILL_TYPE_NPC = 2;
    //玩家发起心法
    public static final byte SKILL_TYPE_PLAYER_HEART = 3;
    public static final byte SKILL_TYPE_OTHERPLAYER_HEART = 4;
    //BUFF总体最大数量
    public static final byte BUFF_MAX_NUMS = 30;
    //技能敌对释放类型
    public static final byte SKILL_USE_TYPE_ONE = 0;// 单体目标
    //释放目标为自身
    public static final byte SKILL_TYPE_PLAYERSELF = 2;
    //释放目标为区域
    public static final byte SKILL_TYPE_AREA = 1;
    //玩家技能buff数量
    public static final byte BUFF_SCREEN_MAX_NUMS = 50;
    //任务动作个数
    public static final byte MISSION_NOTEANI_MAX_NUMS = 2;
    //BUFF 图标宽度
    public static final byte BUFF_ICON_WIDHT = 9;
    //BUFF类型
    //混乱
    public static byte PLAYER_INDEX = 1;
    public static final byte BUFF_TYPE_CONFUSED = 0;
    public static final byte CYCLE_ROLLING_SPEED = 1;
    //滚动的时间间隔
    public static final byte CYCLE_ROLLING_UPDATE_INTERVAL = 100;
    //左右移动速度
    public final static byte MARQUEE_MOVE_SPEED = 1;
    //更新时间间隔
    public final static short MARQUEE_UPDATE_INTERVAL = 80;
    // 快捷栏数量
    public final static byte QUICKSET_NUMS = 9;
    /*********************************图片管理*********************************************/
    //图片管理资源类型
    public static final byte RES_PUBLIC_FINAL = 0;//常驻内存资源
    public static final byte RES_PUBLIC_ONEROOM = 1;//在一个房间内常驻内存资源（低端机会根据回收机制清理）
    public static final byte RES_PUBLIC_TEMP = 2;//临时资源
    public static final byte RES_TYPE_IMAGE = 0;//图片
    public static final byte RES_TYPE_NPC_IMAGE = 3;//图片
    public static final byte RES_TYPE_ANI = 1;//动画文件
    //获得npc图片
    public final static byte NET_TYPE_NPC_IMAGE = 1;
    //获得公共图片
//    public final static byte NET_TYPE_PUBLIC_IMAGE = 2;
    //获得动画文件
    public final static int NET_TYPE_GET_NPC_ANIMATION = 2;
    //获得avatar资源
    public final static byte NET_TYPE_PLAYER_AVATAR_ANI = 3;
    public final static byte NET_TYPE_MAP_IMAGE_2 = 4;
    public final static int NET_TYPE_GET_PUBLIC_ANIMATION = 5;
    public final static byte NET_TYPE_OTHERPLAYER_AVATAR_ANI = 6;
    //技能释放类型
//     public static final byte SKILL_USE_TYPE_AREA = 1;//区域
//      public static final byte SKILL_USE_TYPE_SELF = 2;//自身
    //技能敌对释放类型  
    public static final byte SKILL_USE_TYPE_ENEMY = 16;// 敌对
    public static final byte SKILL_USE_TYPE_TEAM = 64;// 队友
    public static final byte QUICK_TO_GAME_UI = Constant.GAME_UI_CHARGE;
    //功能ID定义
    public static final byte FUNC_ID_TASK = 0;//任务
    public static final byte FUNC_ID_PROPERTY = 1;//属性
    public static final byte FUNC_ID_EQUIP = 2;//装备
    public static final byte FUNC_ID_PLAYER_STATUS = 3;//状态
    public static final byte FUNC_ID_TEAM = 4;//队伍
    public static final byte FUNC_ID_PACKAGE = 5;//背包
    public static final byte FUNC_ID_QUALITY = 6;//画质
    public static final byte FUNC_ID_PET = 7;//宠物
    public static final byte FUNC_ID_SKILL = 8;//技能
    public static final byte FUNC_ID_MERIDIAN = 9;//经脉
    public static final byte FUNC_ID_MAP = 10;//大地图
    public static final byte FUNC_ID_FRIEND = 11;//好友
    public static final byte FUNC_ID_CHAT = 12;//聊天
    public static final byte FUNC_ID_TARGET_SWITCH = 13;//目标切换
    public static final byte FUNC_ID_HANG_UP = 14;//挂机
}
